import styles from './index.less';

import { useHistory } from 'umi';

export default function IndexPage() {
  const history = useHistory();
  const teach = () => {
    history.push('./teach');
  };

  return (
    <>
      <h1 className={styles.title}>Page index</h1>
      <div style={{ background: '#00ff00' }} onClick={teach}>
        teach
      </div>
    </>
  );
}
